export default defineAppConfig({
  pages: [
    "pages/login/index",
    "pages/index/index",
    "pages/project/index",
    "pages/application/index",
    "pages/statistic/index",
    "pages/mine/index",
    "pages/test/test",
    "pages/login/agreement",
    "pages/application/works",
    "pages/application/statistic",
    "pages/application/statisticDetail",
    "pages/index/remind",
  ],

  subPackages: [
    {
      root: "packageWork",
      pages: [
        "pages/plan/index",
        "pages/plan/detail",
        "pages/plan/execute",
        "pages/wages/index",
        "pages/wages/apply",
        "pages/wages/detail",
        "pages/wages/record",
        "pages/dispatch/index",
        "pages/registration/form",
        "pages/registration/list",
      ],
    },
    {
      root: "packageProject",
      pages: [
        "pages/detail/index",
        // "pages/acceptance/index",
        "pages/acceptance/list",
        "pages/acceptance/detail",
        "pages/acceptance/form",
        "pages/finance/index",
        "pages/finance/qrcode",
        "pages/retentionMoney/index",
        "pages/fine/apply",
        "pages/fine/list",
        "pages/report/apply",
        "pages/report/list",
        "pages/report/detail",
        //
        // "pages/inspection/index",
        "pages/inspection/record",
        "pages/inspection/addDaliy",
        "pages/inspection/addStandard",
        "pages/inspection/detail",
        "pages/inspection/standardDetail",
        "pages/inspection/rectification",
        "pages/inspection/rectificationDetail",
        "pages/inspection/correction",
        "pages/settlement/index",
        "pages/afterSales/apply",
        "pages/afterSales/list",
        "pages/afterSales/detail",
        "pages/mokan/index",
        "pages/mokan/add",
        "pages/mokan/alarm",
        "pages/mokan/monitor",
        "pages/material/index",
        "pages/material/confirmation",
        "pages/success/index",
        "pages/materialDeclaration/create",
        "pages/materialDeclaration/optional",
        "pages/materialDeclaration/cart",
        "pages/materialDeclaration/list",
        "pages/materialDeclaration/detail",
        "pages/materialDeclaration/detailMeasure",
        "pages/materialConfirm/list",
        "pages/materialConfirm/detail",
        "pages/approve/detail",
        "pages/engineeringFunds/list",
        "pages/engineeringFunds/apply",
        "pages/engineeringFunds/detail",
        "pages/budget/index",
        "pages/budget/changeDetail",
      ],
    },
  ],

  window: {
    backgroundTextStyle: "light",
    navigationBarBackgroundColor: "#fff",
    navigationBarTitleText: "WeChat",
    navigationBarTextStyle: "black",
  },

  tabBar: {
    color: "#181718",
    selectedColor: "#3b6ce9",
    backgroundColor: "#fff",
    list: [
      {
        text: "待办",
        pagePath: "pages/index/index",
        iconPath: "/static/images/tabbar/todo.png",
        selectedIconPath: "/static/images/tabbar/todo-active.png",
      },
      {
        text: "项目",
        pagePath: "pages/project/index",
        iconPath: "/static/images/tabbar/project.png",
        selectedIconPath: "/static/images/tabbar/project-active.png",
      },
      {
        text: "应用",
        pagePath: "pages/application/index",
        iconPath: "/static/images/tabbar/application.png",
        selectedIconPath: "/static/images/tabbar/application-active.png",
      },
      // {
      //   text: "统计",
      //   pagePath: "pages/statistic/index",
      //   iconPath: "/static/images/tabbar/statistic.png",
      //   selectedIconPath: "/static/images/tabbar/statistic-active.png",
      // },
    ],
  },

  style: "v2",
  lazyCodeLoading: "requiredComponents",
  rendererOptions: {
    skyline: {
      disableABTest: false,
      defaultDisplayBlock: true,
      defaultContentBox: true,
    },
  },
  permission: {
    "scope.userLocation": {
      desc: "你的位置信息将用于施工打卡、巡检管理",
    },
  },
  requiredPrivateInfos: [
    "getLocation",
    "chooseLocation",
    // "onLocationChange",
    // "startLocationUpdateBackground",
    // "chooseAddress"
  ],
});
